Rooting
Download Magisk apk
cp Magisk-v30.4.apk Magisk-v30.4.zip
adb push Magisk-v30.4.zip /storage/self/primary/Download/
Download the TWRP custom recovery.
- Power off the phone
- Reboot to stock recovery by pressing home+power+volume_down
- Confirm by pressing volume_up
- flask TWRP using heimdall:
sudo heimdall flash --RECOVERY twrp-3.6.0_9-0-kminilte.img --no-reboot - Wait for the flashing process to complete
- Cut power by removing the usb cable and the battery
- Reinsert battery and press home+power+volume_up
- Flash the Magisk zip from the Downloads folder an reboot
- Install the Magisk app:
adb install Magisk-v30.4.apk
Enable USB Tethering from adb
Dial *#0808# and select an entry containing RNDIS.
Now you can run:
# for enabling
adb shell su -c 'service call connectivity 41 i32 1'
# for disabling
adb shell su -c 'service call connectivity 41 i32 0'
Revert to stock rom
See Flashing Samsung stock rom